package cn.ddiancan.xddcloud.psc.ding.constants;

public class XddcloudDingConstants {

    /**
     * 钉钉accessToken缓存key前缀
     */
    public static final String DING_TALK_ACCESS_TOKEN_REDIS_PREFIX = "dingtalk_access_token#";

    /**
     * 钉钉获取accessToken接口地址
     */
    public static final String DING_TALK_FETCH_TOKEN_URL = "https://oapi.dingtalk.com/gettoken";

    /**
     * 钉钉获取部门列表接口地址
     */
    public static final String DING_TALK_FETCH_DEPT_LIST_URL = "https://oapi.dingtalk.com/department/list";

    /**
     * 钉钉获取部门成员接口地址
     */
    public static final String DING_TALK_FETCH_DEPT_MEMBERS_URL = "https://oapi.dingtalk.com/user/getDeptMember";

    /**
     * 钉钉获取用户详情接口地址
     */
    public static final String DING_TALK_FETCH_USER_INFO_BY_USER_ID_URL = "https://oapi.dingtalk.com/user/get";

    /**
     * 钉钉获取部门详情接口地址
     */
    public static final String DING_TALK_FETCH_DEPT_ID_URL = "https://oapi.dingtalk.com/department/get";

    /**
     * 钉钉机器人发送消息接口地址
     */
    public static final String DING_TALK_ROBOT_SEND_URL = "https://oapi.dingtalk.com/robot/ding/send";

    public static final String DING_TALK_USER_INFO_BY_CODE = "https://oapi.dingtalk.com/user/getuserinfo";

}
